package com.dragon.logical.service.contract;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dragon.repository.entity.Comment;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 * 评论表 服务类
 * </p>
 *
 * @author sy
 * @since 2023-07-24
 */
public interface ICommentService extends IService<Comment> {

    /**
     * 列表
     * @param correlationId
     * @param streamType
     * @return
     */
    List<Comment> listComment(Integer correlationId, Integer streamType);

    /**
     * 添加一条评论
     * @param comment
     * @param request
     */
    void addComment(Comment comment, HttpServletRequest request);

    /**
     * 回复评论
     * @param comment
     * @param request
     */
    void replyComment(Comment comment, HttpServletRequest request);

    /**
     * 删除评论
     * @param id
     * @param streamType
     * @param request
     */
    void deleteComment(Integer id, Integer streamType, HttpServletRequest request);
}
